//
//  WRCollectionViewCell.m
//  01-UICollectionView显示图片
//
//  Created by 紫荆秋雪 on 16/3/4.
//  Copyright © 2016年 紫荆秋雪. All rights reserved.
//

#import "WRCollectionViewCell.h"

@interface WRCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imageCell;

@end

@implementation WRCollectionViewCell

- (void)awakeFromNib {

    //设置边框的颜色
    self.imageCell.layer.borderColor = [UIColor whiteColor].CGColor;
    //设置边框的宽度
    self.imageCell.layer.borderWidth = 3;
    //设置边框的圆角
    self.imageCell.layer.cornerRadius = 8;
    //把多余出来的截掉
    self.imageCell.clipsToBounds = YES;
    
}

#pragma mark - 重写imageName
- (void)setImageName:(NSString *)imageName
{
    _imageName = [imageName copy];
    
    self.imageCell.image = [UIImage imageNamed:imageName];
}
@end
